/**2013-4-16
 zhangqj
 * 
 */
package sina.api;

import com.itf.net;

/**
 * @author zhangqj 2013-4-16
 */
public class ApiMain {

	public static void main2(String[] args) {
		// https://api.weibo.com/oauth2/authorize?client_id=zhangh571354026@sina.com&redirect_uri=www.baidu.com&response_type=null&state=null&scope=null
		// /need to cmd running the program as following
		// System.out.print(args[0]);
		net sinaNet = new net();
		info _if = new info();
		connectApi api = new connectApi();
		System.out.println(_if.getUserid() + "+" + _if.getPassword());
		String url = sinaNet.getnet(api.SetConnect(_if.getUserid(),
				_if.getPassword()));
		System.out.println(url);
	}

	public static void main(String[] args) {
		// https://api.weibo.com/oauth2/authorize?client_id=zhangh571354026@sina.com&redirect_uri=www.baidu.com&response_type=null&state=null&scope=null
		// /need to cmd running the program as following
		// System.out.print(args[0]);
		sendMsg msg=new sendMsg();
		msg.sendWeibo(null, null);
	}
}
